package com.monlyu.vo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.monlyu.annotation.Comment;
import javax.persistence.Entity;

/********************************************************************************
 * 
 * <b>功能描述☞</b>公告信息<br>
 * 
 * <b>开发公司☞</b>重庆唯尼科技有限公司<br>
 * <b>版权☞</b>本文件归重庆唯尼科技有限公司所有<br>
 * <b>项目名☞</b>NewsSys<br>
 * <b>文件路径☞</b>com.monlyu.vo.Notice.java<br>
 * <b>开发日期☞</b>2010-2-6 <br>
 * 
 * @author zengjun
 * @since JDK 5
 * @version 1.0.8
 * 
 ********************************************************************************/
@Entity(name = "t_notice")
@Comment(common = "公告表")
public class Notice extends BaseVo {

	@Id
	@Column(name = "n_id")
	@Comment(common = "ID编号")
	private Long id;

	@Column(name = "n_title", length = LENGTH_50, nullable = false)
	@Comment(common = "标题")
	private String title;

	@Column(name = "n_content", length = LENGTH_8000, nullable = false)
	@Comment(common = "内容")
	private String content;

	@Column(name = "n_createDate", nullable = false)
	@Comment(common = "发布日期")
	private Date createDate;

	@Column(name = "n_deadDate", nullable = false)
	@Comment(common = "结束日期")
	private Date deadDate;

	@ManyToOne
	@JoinColumn(name = "n_createuserid")
	@Comment(common = "发布人")
	private User createUser;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getDeadDate() {
		return deadDate;
	}

	public void setDeadDate(Date deadDate) {
		this.deadDate = deadDate;
	}

	public User getCreateUser() {
		return createUser;
	}

	public void setCreateUser(User createUser) {
		this.createUser = createUser;
	}
}
